#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from google.appengine.api import users
from google.appengine.api import memcache
from google.appengine.ext import webapp
from google.appengine.api import urlfetch
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template

import logging
import time
import datetime
import os
import oauth
import sys
import simplejson
import random
import urllib,urllib2
from init import *
#print sys.path
class Test(webapp.RequestHandler):
    
    
    def get(self):
        u = urlfetch.fetch('http://localhost:9999/')
        self.response.out.write(u.status_code)
            
application = webapp.WSGIApplication([('/test', Test)], debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
